package com.eighth.proxy.stationary;

/**
 * Author Name: Justice
 * Project Name: Stage11
 * File Name: StaticProxy
 * Package Name: com.eighth.proxy.stationary
 * Date: 2020-03-26 15:16
 * Copyright (c) 2020,All Rights Reserved.
 * 静态代理类
 */


public class StaticProxy implements FoodService {
    private FoodService foodService;

    StaticProxy(FoodService foodService) {
        this.foodService = foodService;
    }

    @Override
    public void makeNoddle() {
        foodService.makeNoddle();
    }

    @Override
    public void makeChicken() {
        foodService.makeChicken();
    }
}
